package com.lagou.zuoye;

public class PhoneTest {

    public static void main(String[] args) {

        // 声明OldPhone类型的引用指向该类型的对象，并打印
        OldPhone o = new OldPhone();
        o.function();

        // 声明NewPhone类型的引用指向该类型的对象，并打印
        NewPhone n = new NewPhone();
        n.function();
        n.playGame();
    }
}
